<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'css' => [
            'assets/library/webuploader/webuploader.css',
            'assets/wx/css/caigou.css',
        ]
    ]);
?>

<body class="gu-caigou" ng-controller="wx-center-caigou-apply-controller">

<footer class="aui-bar aui-bar-tab" id="footer">
    <div class="aui-padded-l-10 aui-padded-r-10 aui-bar-tab-item">
        <div class="aui-btn aui-btn-warning btn-bg" ng-click="doApply()">立即申请</div>
    </div>
</footer>

<div class="aui-content aui-margin-b-15">
    <ul class="aui-list aui-form-list gu-address-ipt">
        <li class="aui-list-header">填写采购人用户信息</li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    姓名
                </div>
                <div class="aui-list-item-input">
                    <input type="text" ng-model="info.name" placeholder="用户姓名">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    联系方式
                </div>
                <div class="aui-list-item-input">
                    <input type="number" ng-model="info.phone" placeholder="用户联系方式">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    邮箱
                </div>
                <div class="aui-list-item-input">
                    <input type="email" ng-model="info.email" placeholder="用户邮箱">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    微信号
                </div>
                <div class="aui-list-item-input">
                    <input type="text" ng-model="info.wechat" placeholder="微信号">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    公司名称
                </div>
                <div class="aui-list-item-input">
                    <input type="text" ng-model="info.company" placeholder="所在公司名称">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    详细地址
                </div>
                <div class="aui-list-item-input">
                    <textarea ng-model="info.address"></textarea>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    销售渠道
                </div>
                <div class="aui-list-item-input">
                    <textarea ng-model="info.channel"></textarea>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    营业执照
                </div>
                <div style="height: 80px;" class="aui-list-item-input">
                    <div class="image-box" id="up-license"></div>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    组织机构代码
                </div>
                <div style="height: 80px;" class="aui-list-item-input">
                    <div class="image-box" id="up-organization"></div>
                </div>
            </div>
        </li>
    </ul>
</div>

<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'http://cdn.staticfile.org/webuploader/0.1.0/webuploader.html5only.min.js',
            'assets/wx/js/center/caigou/apply.js'
        ]
    ]);
?>
